/**
 * @author rococo
 * @email [3936636@qq.com]
 * @create date 2021-04-20 21:47:58
 * @modify date 2021-04-20 21:51:45
 * @desc [路由]
 */

import { createRouter, createWebHistory } from "vue-router";

import Start from "../views/Start";

const routes = [
  {
    path: "/",
    name: "Start",
    component: Start,
  },
  {
    path: "/home",
    name: "Home",
    component: () => import(/* webpackChunkName: "home" */ "../views/Home.vue"),
  },
];

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes,
});

export default router;
